import http from 'http'
import tset from './source-map/test'

const hostname = '127.0.0.1'
const port = 3000

const server = http.createServer((req, res) => {
  let postData='';
  req.on('data', chunk => {
    postData += chunk.toString();
  })
  req.on('end', () => {
    console.log(postData)
  })
  res.statusCode = 200
  res.setHeader('Content-Type', 'applicaton/json')
  res.end(JSON.stringify({
    hello:"hh"
  }))
})

server.listen(port, hostname, () => {
  console.log(`Server running at http://${hostname}:${port}/`)
})
